import BTConditional from "../../Base/BTConditional";
import BlockBoard from "../../BlockBborad";
import { NodeStatues } from "../../Enum";


export default class ConditionalMP extends BTConditional {
    constructor() {
        super();
    }

    onUpdate(): NodeStatues {
        console.log("BlockBoard.Instance.mp", BlockBoard.Instance.mp,"ConditionalMp判断结果为：", BlockBoard.Instance.mp>=100);
        if(BlockBoard.Instance.mp>=100){
            return NodeStatues.Success;
        }

        return NodeStatues.Failed;
    }
}